package org.canaan.auth2.action;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;

@RequestMapping("/")
@Controller
public class LoginAction {
	 private final Logger logger = LoggerFactory.getLogger(LoginAction.class);

	 public LoginAction(){
		 logger.debug("init {} =========================",this.getClass());
	 }
	 
	@RequestMapping("login.htm")
	public ModelAndView login(){
		return new ModelAndView("login");
	}
	
	@RequestMapping("index.htm")
	public ModelAndView index(){
		return new ModelAndView("index");
	}
	
//	/**
//	 * 登录处理
//	 * @return
//	 */
//	@RequestMapping("login.do")
//	@ResponseBody
//	public String doLogin(){
//		return "success";
//	}
	
	
	
}
